<?php

require_once 'db_conn.php';
$id = $_GET['id'];
$message = $_POST["message"];

$sql="
UPDATE  `t_message` SET  `content` =  '$message' WHERE `id` = $id    
";

$result = $conn->query($sql);

if($result===false){
    echo "修改内容失败";
}else{
   header("location:index.php");
}
